<template>
  <div class="faviourates">
    <div class="warpper">
      <div class="box1">
        <div class="left">
          <i class="iconfont icon-zuojiantou" @click="backToHome()"></i>
          <span>歌单</span>
        </div>
        <div class="right">
          <i class="iconfont icon-sousuo"></i>
          <i class="iconfont icon-ziyuan"></i>
        </div>
      </div>
    </div>
    <div class="box2">
      <div class="warpper">
        <div class="box3">
          <img src="@/assets/myt/box1.png" alt="" />
          <div class="box4">
            <p class="p-text">我喜欢的音乐</p>
            <div class="text">
              <p class="p1">
                <i class="iconfont icon-ziyuan87"></i>
              </p>
              <p class="p2">云村村民16306...</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="box5"></div>
    <div class="box6">
      <div class="box6-1">
        <i class="iconfont icon-duigou"></i>
        <span>收藏</span>
      </div>
      <div class="box6-1">
        <i class="iconfont icon-008duihuakuang-4"></i>
        <span>评论</span>
      </div>
      <div class="box6-1">
        <i class="iconfont icon-fenxiang_o"></i>
        <span>分享</span>
      </div>
    </div>

    <GQ />
    <Singer :singerList="songList"/>
  </div>
</template>

<script>
import GQ from "@/views/myt/erji/gequ.vue";
import { getdata } from "../../api/getlink";
import Singer from "@/components/myt/singer.vue";
export default {
  data() {
    return {
      songList:Array
    };
  },
  created() {
    if (this.$route.query.type && this.$route.query.type == "lovesong") {
      getdata("/proxy/wySong/getSong", { songlistid: 1 }).then((res) => {
        console.log(res);
        this.songList = res.data.data
        // this.$router.push({path:"/fa",query:{xiaoming:res.data.data}})
        // this.$router.push({path:"/fa",query:{
        //   // songlistid: -1,
        //   type:"lovesong"
        // }})
      });
    }
  },
  methods: {
    backToHome() {
      this.$router.push("/my");
    },

    // mounted() {
    //   console.log(this.$route.query.xiaoming);
    // },
  },
  components: {
    GQ,
    Singer,
  },
};
</script>

<style scoped>
.faviourates {
  width: 100%;
  height: 1.28rem;
  background-color: #404348;
  color: white;
}
.warpper {
  margin: 0 auto;
  width: 6.86rem;
  height: 100%;
}
.box1 {
  display: flex;
  font-size: 0.35rem;
  justify-content: space-between;
  line-height: 1.28rem;
}
i {
  font-size: 0.35rem;
  margin-left: 0.39rem;
  margin-right: 0.39rem;
}
.box2 {
  height: 2.86rem;
  background-color: #404348;
}
img {
  display: block;
  width: 2.53rem;
  height: 2.53rem;
}
.box3 {
  display: flex;
}
.p-text {
  font-size: 0.33rem;
  text-indent: 1em;
}
.text {
  display: flex;
  /* justify-content: space-around; */
  align-items: center;
}
.p1 {
  width: 0.9rem;
  height: 0.9rem;
  background-color: #faeef4;
  border-radius: 50%;
  margin-right: 0.3rem;
  margin-top: 0.3rem;
  margin-left: 0.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.p1 > i {
  font-size: 0.5rem;
  color: #ffd8e7;
}
.p2 {
  color: #989aa3;
  font-size: 0.25rem;
  font-weight: 600;
}
.box5 {
  width: 100%;
  height: 0.82rem;
  background-color: #404348;
}
.box6 {
  width: 6rem;
  height: 1rem;
  background-color: white;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  margin: 0 auto;
  position: relative;
  top: -0.46rem;
  color: #2c2c2c;
  display: flex;
  align-items: center;
  font-size: 0.3rem;
  /* justify-content: space-evenly; */
}
.box6-1 {
  display: flex;
  justify-content: center;
}
ul {
  width: 100%;
  height: 10rem;
}
li {
  height: 1rem;
  display: flex;
}
</style>